package com.emcom.gotour.mvc.view;

import java.io.Serializable;
import java.util.List;

import com.emcom.gotour.po.TourContent;
import org.apache.commons.lang.builder.CompareToBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class HomeView implements Comparable<Object>, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 829476198853358337L;
	private String title;
	private List<TourContent> zhouBianList;
	private List<TourContent> guoNeiList;
	private List<TourContent> chuJingList;
	private List<TourContent> jiuDianList;
	private List<TourContent> jingDianList;
	private List<TourContent> trainingList;
	private List<TourContent> anLiList;
	private List<TourContent> popularList;
	private TourContent ad;
	private MenuView menuView;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public List<TourContent> getZhouBianList() {
		return zhouBianList;
	}
	public void setZhouBianList(List<TourContent> zhouBianList) {
		this.zhouBianList = zhouBianList;
	}
	public List<TourContent> getGuoNeiList() {
		return guoNeiList;
	}
	public void setGuoNeiList(List<TourContent> guoNeiList) {
		this.guoNeiList = guoNeiList;
	}
	public List<TourContent> getChuJingList() {
		return chuJingList;
	}
	public void setChuJingList(List<TourContent> chuJingList) {
		this.chuJingList = chuJingList;
	}
	public List<TourContent> getJiuDianList() {
		return jiuDianList;
	}
	public void setJiuDianList(List<TourContent> jiuDianList) {
		this.jiuDianList = jiuDianList;
	}
	public List<TourContent> getJingDianList() {
		return jingDianList;
	}
	public void setJingDianList(List<TourContent> jingDianList) {
		this.jingDianList = jingDianList;
	}
	public List<TourContent> getTrainingList() {
		return trainingList;
	}
	public void setTrainingList(List<TourContent> trainingList) {
		this.trainingList = trainingList;
	}
	public List<TourContent> getAnLiList() {
		return anLiList;
	}
	public void setAnLiList(List<TourContent> anLiList) {
		this.anLiList = anLiList;
	}
	public List<TourContent> getPopularList() {
		return popularList;
	}
	public void setPopularList(List<TourContent> popularList) {
		this.popularList = popularList;
	}
	public TourContent getAd() {
		return ad;
	}
	public void setAd(TourContent ad) {
		this.ad = ad;
	}
	public MenuView getMenuView() {
		return menuView;
	}
	public void setMenuView(MenuView menuView) {
		this.menuView = menuView;
	}
	/**
	 * @see java.lang.Comparable#compareTo(Object)
	 */
	public int compareTo(Object object) {
		HomeView myClass = (HomeView) object;
		return new CompareToBuilder().append(this.chuJingList,
				myClass.chuJingList).append(this.jingDianList,
				myClass.jingDianList).append(this.title, myClass.title).append(
				this.jiuDianList, myClass.jiuDianList).append(this.anLiList,
				myClass.anLiList).append(this.ad, myClass.ad).append(
				this.zhouBianList, myClass.zhouBianList).append(
				this.trainingList, myClass.trainingList).append(
				this.guoNeiList, myClass.guoNeiList).append(this.menuView,
				myClass.menuView).append(this.popularList, myClass.popularList)
				.toComparison();
	}
	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof HomeView)) {
			return false;
		}
		HomeView rhs = (HomeView) object;
		return new EqualsBuilder().appendSuper(super.equals(object)).append(
				this.chuJingList, rhs.chuJingList).append(this.jingDianList,
				rhs.jingDianList).append(this.title, rhs.title).append(
				this.jiuDianList, rhs.jiuDianList).append(this.anLiList,
				rhs.anLiList).append(this.ad, rhs.ad).append(this.zhouBianList,
				rhs.zhouBianList).append(this.trainingList, rhs.trainingList)
				.append(this.guoNeiList, rhs.guoNeiList).append(this.menuView,
						rhs.menuView).append(this.popularList, rhs.popularList)
				.isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-233771547, -1959623109).appendSuper(
				super.hashCode()).append(this.chuJingList).append(
				this.jingDianList).append(this.title).append(this.jiuDianList)
				.append(this.anLiList).append(this.ad)
				.append(this.zhouBianList).append(this.trainingList).append(
						this.guoNeiList).append(this.menuView).append(
						this.popularList).toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("trainingList",
				this.trainingList).append("jiuDianList", this.jiuDianList)
				.append("ad", this.ad).append("popularList", this.popularList)
				.append("guoNeiList", this.guoNeiList).append("menuView",
						this.menuView)
				.append("jingDianList", this.jingDianList).append("title",
						this.title).append("chuJingList", this.chuJingList)
				.append("zhouBianList", this.zhouBianList).append("anLiList",
						this.anLiList).toString();
	}
	
}
